introduce a helper to allocate non-contiguous memory
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 15 May 2015 08:06:04 +0000 (10:06 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 May 2015 08:06:04 +0000 (10:06 +0200)
commitf278fcf19ce15f7b7ee69181560b5884a5e12b66
treeaf1d4e3be13f41c96470cb410ef7becc10bf713e
parente62e49e6d5d4e8d22f3df0b75443ede65a812435
introduce a helper to allocate non-contiguous memory

The allocator uses independent calls to alloc_domheap_pages in order to get
the desired amount of memory and then maps all the independent physical
addresses into a contiguous virtual address space.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Tested-by: Julien Grall <julien.grall@citrix.com> (ARM)
Reviewed-by: Tim Deegan <tim@xen.org>
xen/common/vmap.c
xen/include/asm-arm/mm.h
xen/include/asm-x86/page.h
xen/include/xen/vmap.h